<div id = "review_block">
	<?php
		unset($paginator->Html);
		$paginator->Html = $appHtml; 
		//render element for review filter.
		if(!empty($reviews))
		{
			echo $this->element('review_filter');
		}
	?>
	<?php
	if(!empty($reviews))
	{?>			
		<?php echo $this->element('reviews', array('reviews' => $reviews,'view_type'=>$view_type));?>
		<div class='paginate'>
			<?php echo $paginator->prev(__('Prev'));?>
			<?php echo $paginator->numbers(array('separator'=>' '));?>
			<?php echo $paginator->next(__('Next'));?>
		</div>
		<div class="clear"></div>
	<?php 
	}else
	{
		echo "<h4 class='no_results'>".__('There is no review present!')."</h4>";
	}
	?>
</div>
<?php echo $javascript->link('/cms/js/jquery.ajaxify.js',false);
$javascript->link('/js/jquery.address.js',false);?>
<script type="text/javascript">
$(document).ready(function()
{
	<?php if(!isset($this->params['named']['combined'])){?>
	makeAjaxified($('#review_block').find('#review_sortLink, .paginate a'),'review_block');
	<?php }else{ ?>
		makeAjaxified($('#review_block').find('#review_sortLink, .paginate a'),'review_block',{noAddressChange:true});
	<?php } ?>	
});
</script>